#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(int argc,char const* argv[]){
     char s1[]="hello";//指针类型只读，数组不是
     char *p = strchr(s1,'l');
    // p=strchr(p+1,'l');
     char m=*p;
     *p='\0';
     char *t = (char*)malloc(strlen(s1)+1);
     strcpy(t,s1);
     printf("%s\n",t);
     free(t);
     return 0;
}
//strstr 寻找字符串
//strcasestr 找字符串忽略大小写